package com.softWang.job.vo.jobManage;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 定时任务管理---定时任务修改状态参数
 * </p>
 *
 * @author wang
 * @since 2025-05-08
 */
@Data
@ApiModel
public class JobManageChangeStatusParam {

    @ApiModelProperty(value = "任务ID")
    @NotNull(message = "jobId不能为空")
    private Long jobId;

    @ApiModelProperty(value = "任务状态（0正常 1暂停） ,长度2")
    @NotBlank(message = "status不能为空")
    @Size(max = 2, message = "status最大长度为2")
    private String status;

}
